# -*- coding: utf-8 -*-

import sys
import math

from list_cad import d1

d1 ['LP'] = 18
"""
media = 0.0
c = 0

for valor in d1.itervalues():
    media += valor
    c += 1
media /= c
"""

def calc_media(n):    
    media = 0.0
    c = 0
    for valor in range(d1.iteritems()):
        media += valor
        c += 1
    media /= c    


print "media =", calc_media(val_med)
"""
for chave, valor in d1.iteritems():
    print chave, valor
"""
